package gwtlx.tinymce.client;

import com.google.gwt.core.client.JavaScriptObject;

/**
 * todo: javadoc
 * <p/>
 * &copy; Copyright by Konstantin Pavlov
 *
 * @author Konstantin Pavlov
 * @version $LastChangedRevision$
 * @since 08.06.2010
 */
public class TinyMceEditor extends JavaScriptObject {

    protected TinyMceEditor() {}

    private TinyMceEditor as(JavaScriptObject jsObject) {
        return (TinyMceEditor) jsObject;
    }

    public static native void init(TinyMceConfig cfg, String textAreaId) /*-{
        alert('before');
//        tinyMCE.init(cfg);
//        $wnd.tinyMCE.init({mode:'textareas'});
        tinyMCE.execCommand("mceAddControl", true, textAreaId);
        alert('after');
    }-*/;
}
